﻿@model IRIS.Models.LinkCategory

@{
    ViewBag.Title = "Edit";
}

<h2>Breyta hlekkjasafni</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>LinkCategory</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
           Eyða? tómur kassi fyrir já.
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Alive)
            @Html.ValidationMessageFor(model => model.Alive)
        </div>
        @if (User.IsInRole("Stjórnendur"))
        {
        <p>
            <input type="submit" value="Vista" />
        </p>}
    </fieldset>
}

